package com.yangrd.airship.upms.domain;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.List;

/**
 * description: User
 *
 * @author: yangrd
 * @date: 2021/6/24
 * @version: 1.0
 */
@Getter
@Setter
@Entity
@Table(name = "upms_user")
public class User extends AbstractEntity {

    private String username;

    private String password;

    @ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
    private List<Role> roles;

}
